﻿using System.Collections.Generic;

namespace RabbitDownload.WebSite.Pixiv.PixivTagMember
{
    internal class PixMemStaticvlaue
    {
        private static bool blockComicEnhance = false;
        private static string searchIndex = "https://www.pixiv.net/search.php?word={0}&s_mode=s_tag_full&order=date_d&p={1}";

        private static string searchIndexForMember = "https://www.pixiv.net/search.php?word={0}&order=popular_d&p={1}";

        private static bool memberFlag = false;

        /// <summary>
        /// 搜索辅助
        /// </summary>
        public static string SearchIndex { get => searchIndex; set => searchIndex = value; }

        /// <summary>
        /// 搜索，会员模式
        /// </summary>
        public static string SearchIndexForMember { get => searchIndexForMember; set => searchIndexForMember = value; }

        /// <summary>
        /// 会员标志
        /// </summary>
        public static bool MemberFlag { get => memberFlag; set => memberFlag = value; }

        /// <summary>
        /// 屏蔽漫画增强模块
        /// </summary>
        public static bool BlockComicEnhance { get => blockComicEnhance; set => blockComicEnhance = value; }

        public class PixivItem
        {
            public class Root
            {
                /// <summary>
                ///
                /// </summary>
                public int illustId { get; set; }

                /// <summary>
                ///
                /// </summary>
                public string illustTitle { get; set; }

                /// <summary>
                ///
                /// </summary>
                public int illustType { get; set; }

                /// <summary>
                ///
                /// </summary>
                public string url { get; set; }

                /// <summary>
                ///
                /// </summary>
                public List<string> tags { get; set; }

                /// <summary>
                ///
                /// </summary>
                public string userId { get; set; }

                /// <summary>
                /// 白羽しろは
                /// </summary>
                public string userName { get; set; }

                /// <summary>
                ///
                /// </summary>
                public string userImage { get; set; }

                /// <summary>
                ///
                /// </summary>
                public string isBookmarkable { get; set; }

                /// <summary>
                ///
                /// </summary>
                public string isBookmarked { get; set; }

                /// <summary>
                ///
                /// </summary>
                public int width { get; set; }

                /// <summary>
                ///
                /// </summary>
                public int height { get; set; }

                /// <summary>
                ///
                /// </summary>
                public int pageCount { get; set; }

                /// <summary>
                ///
                /// </summary>
                public int bookmarkCount { get; set; }

                /// <summary>
                ///
                /// </summary>
                public int responseCount { get; set; }

                //public object illustSeries { get; set; }
            }
        }
    }
}